home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 83
/
(Vol 83) My Disc.iso
/
Games
/
drying.swf
/
scripts
/
frame_132
/
PlaceObject2_181_639
/
CLIPACTIONRECORD onClipEvent(mouseUp).as
< prev
Wrap
Text File
|
2008-08-08
|
2KB
|
50 lines
onClipEvent(mouseUp){
if(this.state == "umbrellar")
{
_root.mcUmbrellar._visible = true;
this.state = "standard";
this.gotoAndStop("flstandard");
}
if(this.state == "cloth")
{
isOk = false;
i = 1;
while(i <= 4)
{
if(_root["mcCloth" + i].mcBody.hitTest(_root._xmouse,_root._ymouse) && _root["mcCloth" + i]._currentframe == 1)
{
isOk = true;
_root["mcCloth" + i].wait = 60 + random(60);
_root["mcCloth" + i].isWet = this.isWet;
_root["mcCloth" + i].gotoAndStop(this.clothnum + 1);
this.state = "ride";
this.gotoAndStop("flride");
}
i++;
}
if(isOk == false)
{
if(this._x < 80 && this.isWet == false)
{
this.drynum = this.drynum + 1;
_root["mcStack" + this.drynum].gotoAndStop(this.clothnum + 1);
sndStack = new Sound(this);
sndStack.attachSound("stack");
sndStack.start(0,1);
_root.mcPlayer.state = "standard";
_root.mcPlayer.gotoAndStop("flstandard");
}
else
{
_root.mcDroped._x = this._x;
_root.mcDroped._y = this._y + 50;
_root.mcDroped.num = this.clothnum;
_root.mcDroped.gotoAndPlay(2);
_root.mcDroped.mcScore.gotoAndPlay(1);
this.state = "standard";
this.gotoAndStop("flstandard");
}
}
}
}